<?php
class FeaturedProduct extends Controller
{
    public function actionIndex()
    {
        $page = 1;
        $perPage = 4;
        $this->setTitle('Sản phẩm nổi bật');
        $fieldOrder = 'price';
        $fetchOptions = array(
            'page' => $page,
            'perPage' => $perPage
        );
        $productModel = $this->_loader->model('ProductModel');
        $viewParams = array(
            'products' => $productModel->getFeaturedProduct($fieldOrder, $fetchOptions)
        );
        return $this->responseView('module/featured_product', $viewParams);
    }
}